import App from "./App";

// #ifndef VUE3
import Vue from "vue";
// import unilogin from '@/components/uni-login/uni-login.vue'
// Vue.component('uni-login', unilogin)
import store from './store/index.js'
Vue.prototype.$store = store
import socketIO from './untils/socket.js'
Vue.prototype.$socket = new socketIO()
Vue.prototype.$onLaunched = new Promise((resolve) => {
	Vue.prototype.$isResolve = resolve;
});
import uView from "@/uni_modules/uview-ui";
Vue.use(uView);
import share from "./share/share.js";
Vue.mixin(share);
Vue.prototype.$imgurl = "https://h900vpfy.vip6.hlidc.cn";
// Vue.prototype.$imgurl = "https://liy.c.hlidc.cn";
import "./uni.promisify.adaptor";
Vue.config.productionTip = false;
App.mpType = "app";
const app = new Vue({
	store,
	...App,
});
app.$mount();
// #endif

// #ifdef VUE3
import {
	createSSRApp
} from "vue";
export function createApp() {
	const app = createSSRApp(App);
	return {
		app,
	};
}
// #endif
